﻿@model Home.WebUI.Areas.Mythi.Controllers.SuccessCreate
@{
    ViewBag.SidebarId = 31;
    ViewBag.Title = "新建案例";
    Layout = "~/Areas/Mythi/Views/Shared/_Layout.cshtml";
}
@section scripts{
     <script type="text/javascript" src="~/Scripts/ueditor1.2.5.0/editor_config.js"></script>
    <script type="text/javascript" src="~/Scripts/ueditor1.2.5.0/editor_all.js"></script>
      <script type="text/javascript" src="~/Scripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.validate.extension.js"></script>
    <script type="text/javascript" src="~/Scripts/messages_zh.js"></script>
    <script type="text/javascript" src="~/Scripts/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        //var editor = new UE.ui.Editor();
        //editor.render("Body");
        //1.2.4以后可以使用一下代码实例化编辑器
        UE.getEditor('Body');
    </script>
    @Model.UniValidate.JsValidate
    }
@section loadend{}


                 <form class="form-horizontal" method="post" enctype="multipart/form-data" action="@Url.Action("Create")">
  <fieldset>
    <legend>案例内容</legend>
    <div class="control-group">
      <label class="control-label" for="Title" >名称</label>
      <div class="controls">
        @Html.TextBoxFor(m => m.Name)
      </div>
    </div>
      <div class="control-group">
      <label class="control-label" for="LeiBieId" >分类</label>
      <div class="controls">
        @Html.DropDownList("LeiBieId")
      </div>
    </div>
      <div class="control-group">
      <label class="control-label" for="BrandId" >品牌</label>
      <div class="controls">
        @Html.DropDownList("BrandId")
      </div>
    </div>
      <div class="control-group">
      <label class="control-label" for="pic" >图片(220*147)</label>
      <div class="controls">
       <input type="file" name="pic" id="pic" />
      </div>
    </div>
      <div class="control-group">
      <label class="control-label" for="Body" >内容</label>
      <div class="controls">
        @Html.TextAreaFor(m => m.Body)
      </div>
    </div>
      <div class="control-group">
      <label class="control-label" for="CreateDate" >日期</label>
      <div class="controls">
        <input name="CreateDate"  type="text" id="CreateDate" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" value="@string.Format("{0:yyyy-MM-dd}", Model.CreateDate)" />
      </div>
    </div>
       <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
           <a href="@Url.Action("index")" class="btn">取消</a>
          </div>

  </fieldset>
</form>
